package ontowebapp.trimstring.fc.lib;

import org.objectweb.fractal.fraclet.annotations.Component;
import org.objectweb.fractal.fraclet.annotations.Interface;

import ontocompo.fc.lib.Service;
import ontowebapp.trimstring.fc.api.TrimItf;

@Component(provides = {@Interface(name = "trimItf", signature = ontowebapp.trimstring.fc.api.TrimItf.class), @Interface(name = "ontocompoIntrospectionItf", signature = ontocompo.api.IntrospectionItf.class)})
public class TrimService extends Service implements TrimItf {

	public TrimService() {
		this.uid = "ontowebapp.trimstring.fc.lib.TrimService";
	}
	
	@Override
	public String trim(String textToTrim, String pattern) {
		return textToTrim.replaceAll(pattern, "");
	}

}
